package entity;

import java.util.Date;

public class Schedule {
    private String scheduleId;
    private Movie movie;
    private CinemaHall cinemaHall;
    private Date startTime;
    private double price;

    public Schedule() {
    }

    public Schedule(String scheduleId, Movie movie, CinemaHall cinemaHall, Date startTime, double price) {
        this.scheduleId = scheduleId;
        this.movie = movie;
        this.cinemaHall = cinemaHall;
        this.startTime = startTime;
        this.price = price;
    }

    // Getter 和 Setter 方法
    public String getScheduleId() {
        return scheduleId;
    }

    public void setScheduleId(String scheduleId) {
        this.scheduleId = scheduleId;
    }

    public Movie getMovie() {
        return movie;
    }

    public void setMovie(Movie movie) {
        this.movie = movie;
    }

    public CinemaHall getCinemaHall() {
        return cinemaHall;
    }

    public void setCinemaHall(CinemaHall cinemaHall) {
        this.cinemaHall = cinemaHall;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    @Override
    public String toString() {
        return "Schedule{" +
                "scheduleId='" + scheduleId + '\'' +
                ", movie=" + movie +
                ", cinemaHall=" + cinemaHall +
                ", startTime=" + startTime +
                ", price=" + price +
                '}';
    }
}